package com.oocl.dataprocess.comparator;

import java.util.Comparator;

import com.oocl.dataprocess.pojo.Customer;

public class BirthComparator implements Comparator<Customer> {
	public int compare(Customer o1, Customer o2) {
//		Customer customer1 = (Customer)o1;
//		Customer customer2 = (Customer)o1;
//		if(customer1.getBirth().compareTo(customer2.getBirth())>0){
//			return 1;
//		}else if(customer1.getBirth().compareTo(customer2.getBirth())==0){
//			if(customer1.equals(customer2)){
//				return 0;
//			}
//			return 1;
//		}else{
//			return -1;
//		}
		return o1.getBirth().compareTo(o2.getBirth());
	}
	
	
}
